
<body>
<font style="font-size:9pt"> <span style="behavior:url(#default#clientCaps)" id=info></span> <script type="text/javascript"
	language=javascript> 

function chk(num){ 
    if (num){ 
        alert (detectPlugin(clsname.value)); 
    }else{ 
        alert (chksoft(objname.value)); 
    } 
} 

function detectPlugin(sID) 
{ 
    var bComInstalled = info.isComponentInstalled(sID, "ComponentID"); 
    if (bComInstalled) 
    { 
        return "版本号：" + info.getComponentVersion(sID, "ComponentID"); 
    } 
    else 
    { 
        return "未知版本。"; 
    } 
} 

function chksoft(str1) { 
    if (chkthis(str1)){ 
        return "√已安装。"; 
    }else{ 
        return "×未安装。"; 
    } 
} 
</script> <script type="text/vbscript"><!-- 
function chkthis(sname) 
on error resume next 
set tmp=CreateObject(sname) 
if IsObject(tmp) then 
    chkthis=true 
else 
    chkthis=false 
end if 
end function 
--></script>
<table border=1 style="font-size:9pt" width=800>
	<tr align=center bgcolor=eeeeee>
		<td>软件名</td>
		<td>控件名</td>
		<td>ClassID</td>
		<td>状态</td>
	</tr>
	<tr height=20>
		<td>FLASH</td>
		<td><font color=blue>ShockwaveFlash.ShockwaveFlash</td>
		<td><font color=008888>{D27CDB6E-AE6D-11CF-96B8-444553540000}</td>
		<td><script>document.write(chksoft("ShockwaveFlash.ShockwaveFlash"));document.write(detectPlugin("{D27CDB6E-AE6D-11CF-96B8-444553540000}"))</script></td>
	</tr>
	<tr height=20>
		<td>Media Player</td>
		<td><font color=blue>WMPlayer.OCX.7 MediaPlayer.MediaPlayer.1</td>
		<td><font color=008888>{6BF52A52-394A-11D3-B153-00C04F79FAA6} {22D6F312-B0F6-11D0-94AB-0080C74C7E95}</td>
		<td><script>document.write(chksoft("WMPlayer.OCX"));document.write(detectPlugin("{6BF52A52-394A-11D3-B153-00C04F79FAA6}"))</script>
		<script>document.write(chksoft("MediaPlayer.MediaPlayer.1"));document.write(detectPlugin("{22D6F312-B0F6-11D0-94AB-0080C74C7E95}"))</script></td>
	</tr>
	<tr height=20>
		<td>Real Media</td>
		<td><font color=blue>rmocx.RealPlayer G2 Control.1</td>
		<td><font color=008888>{CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA}</td>
		<td><script>document.write(chksoft("rmocx.RealPlayer G2 Control"));document.write(detectPlugin("{CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA}"))</script></td>
	</tr>
	<tr height=20>
		<td>Quick Time</td>
		<td><font color=blue>QuickTime.QuickTime.4</td>
		<td><font color=008888>{02BF25D5-8C17-4B23-BC80-D3488ABDDC6B}</td>
		<td><script>document.write(chksoft("QuickTime.QuickTime"));document.write(detectPlugin("{02BF25D5-8C17-4B23-BC80-D3488ABDDC6B}"))</script></td>
	</tr>
	<tr height=20>
		<td>Adobe Reader</td>
		<td><font color=blue>AcroPDF.PDF.1</td>
		<td><font color=008888>{CA8A9780-280D-11CF-A24D-444553540000}</td>
		<td><script>document.write(chksoft("AcroPDF.PDF"));document.write(detectPlugin("{CA8A9780-280D-11CF-A24D-444553540000}"))</script>
	</tr>
	<tr height=20>
		<td>MicroSoft Excel</td>
		<td><font color=blue>OWC10.Spreadsheet.10 OWC11.Spreadsheet.11</td>
		<td><font color=008888>{0002E541-0000-0000-C000-000000000046} {0002E559-0000-0000-C000-000000000046}</td>
		<td><script>document.write(chksoft("OWC10.Spreadsheet"));document.write(detectPlugin("{0002E541-0000-0000-C000-000000000046}"))</script>
		<script>document.write(chksoft("OWC11.Spreadsheet"));document.write(detectPlugin("{0002E559-0000-0000-C000-000000000046}"))</script></td>
	</tr>
</table>
<input name=objname type=text size=60><input type=button onclick=chk(0) value=控件名检测> <input name=clsname type=text
	size=60><input type=button onclick=chk(1) value=classID检测>